<?php
/**
 * Created by sublime 3.
 * Auth: Inhere
 * Date: 15-1-19
 * Time: 10:35
 * Uesd: 主要功能是 hi
 *  @from windwalker https://github.com/ventoviro/windwalker
 */

namespace ulue\core\response;

interface InterfaceResponse
{
    public function send($returnBody = false);

    public function compress($encodings);

    public function setHeader($name, $value, $replace = false);

    /**
     * 在响应内容之前添加
     * @return string
     */
    public function prepend($data);

    /**
     * 在响应内容之后添加
     * @return string
     */
    public function append($data);

    public function setCharset($charset);

    public function getCharset();

    public function headersIsSent();

    public function checkConnectionAlive();

    public function sendHeaders();

    public function clearHeaders();

    public function setHeaders($header);

    public function getHeaders();

    public function setBody($content);

    public function getBody($toArray=false);

    /**
     * getMimeType
     *
     * @return  string
     */
    public function getMimeType();

    /**
     * setMimeType
     *
     * @param   string $mimeType
     *
     * @return  static  Return self to support chaining.
     */
    public function setMimeType($mimeType);


}